package com.sunjy.demo1.excel.Entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.Max;
import java.io.Serializable;
import java.util.Date;

/**
 * @Auther: sunjy
 * @Date: 2018/10/19 15:03
 * @Description:
 */
@Data
public class UserDetail implements Serializable {
    private static final long serialVersionUID = -6111504774490702101L;

    @Excel(name = "id")
    private  Integer id;

    @Excel(name = "姓名")
    private String name;

    @Excel(name = "性别",replace = { "男_1", "女_2" }, suffix = "生")
    private int sex;

    @Excel(name = "年龄")
    private int age;

    @Excel(name = "电话号码",width = 22)
    private String phone;

    // 生日
    @Excel(name = "出生日期", format = "yyyy-MM-dd", width = 20)
    private Date birthday;

    @Excel(name = "描述",width = 22,isColumnHidden=true)
    private String desc;

    @Excel(name="图片",type = 2,imageType = 1,savePath = "/img")//在本项目的盘符的根目录下 ex:e:/img
    private String img;
}
